<template>
    <div class="userinfo">
        <div class="container">
            <div class="wrapper">
                <div class="left-sidebar">
                    <ul class="navlist">
                        <li>
                            <i></i>
                            <a href="/#/user/userinfo">个人资料</a>
                        </li>
                        <li>
                            <a href="/#/user/released">我发布的</a>
                        </li>
                        <li>
                            <a href="/#/user/sold">我卖出的</a>
                        </li>
                        <li>
                            <a href="/#/user/bought">我买到的</a>
                        </li>
                        <li>
                            <a href="/#/user/collected">我收藏的</a>
                        </li>
                        <li>
                            <a href="/#/user/removed">已下架</a>
                        </li>
                    </ul>
                </div>
                <div class="article">
                    <form class="post">
                        <div class="title"><strong>个人资料</strong> / <small>Personal&nbsp;information</small></div>
                        <div class="upload-content">
                            <div class="userid">
                                <div class="head-img">
                                    <img src="/images/avator/man2.jpg" alt="">
                                </div>
                                <div class="user-id">
                                    <div class="text">用户ID：</div>
                                    <div class="content">123456</div>
                                </div>
                            </div>
                            <div class="username user">
                                <div class="text">昵称：</div>
                                <input type="text" placeholder="123456">
                            </div>
                            <div class="userrealname user">
                                <div class="text">真实姓名：</div>
                                <div class="content">123456</div>
                            </div>
                            <div class="usergender user">
                                <div class="text">性别：</div>
                                <div class="gender-btn">
                                    <input type="radio" id="man" value="man" v-model="gender"> 男
                                    <input type="radio" id="woman" value="woman" v-model="gender"> 女
                                    <input type="radio" id="secret" value="secret" v-model="gender"> 保密
                                </div>
                            </div>
                            <div class="userbirth user">
                                <div class="text">生日：</div>
                                <div class="content">1990-01-01</div>
                            </div>
                            <div class="userphone user">
                                <div class="text">手机：</div>
                                <input type="number" placeholder="15695161234" oninput="this.value=this.value.length>11?this.value.substr(0,11):this.value;" />
                            </div>
                            <div class="useremail user">
                                <div class="text">邮箱：</div>
                                <input type="email" />
                            </div>
                            <div class="preserve">
                                <div class="btn-group">
                                    <a href="javascript:;" class="btn btn-large">确认保存</a>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</template>
<script>
export default {
    name:'userinfo',
    data(){
        return {
            gender: ''
        }
    }
}
</script>
<style lang="scss">
    .userinfo{
        font: 14px/1.5 "PingFang SC","Lantinghei SC","Microsoft YaHei","HanHei SC","Helvetica Neue","Open Sans",Arial,"Hiragino Sans GB","微软雅黑",STHeiti,"WenQuanYi Micro Hei",SimSun,sans-serif;
        background: #f6f6f6;
        .wrapper{
            display:flex;
            justify-content: space-between;
            .left-sidebar{
                width: 210px;
                height: 300px;
                background: #ffffff;
                border-radius: 4px;
                .navlist{
                    li{
                        height: 48px;
                        line-height: 48px;
                        padding: 0 20px;
                        font-size: 14px;
                        cursor: pointer;
                        position: relative;
                        display: flex;
                        flex-direction: row;
                        i{
                            display: inline-block;
                            position: absolute;
                            left: 0;
                            top: 10px;
                            width: 3px;
                            height: 32px;
                            background: #2b81bd;
                            vertical-align: middle;
                        }
                        a{
                            color: #333333;
                        }
                        &:hover{
                            background: #2b81bd;
                            border-radius: 4px;
                        }
                    }
                }
            }
            .article{
                width: 900px;
                margin-left: 20px;
                box-sizing: border-box;
                border-radius: 4px;
                .post{
                    .title{
                        border-radius: 4px;
                        width: 100%;
                        line-height: 65px;
                        padding: 0 30px;
                        background: #fff;
                        position: relative;
                        box-sizing: border-box;
                    }
                    .upload-content{
                        margin-top: 10px;
                        padding-bottom: 20px;
                        background: #ffffff;
                        border-radius: 4px;
                        .userid{
                            display: flex;
                            flex-direction: row;
                            .head-img{
                                margin: 30px 60px;
                                height: 120px;
                                img{
                                    height: 120px;
                                    width: 120px;
                                    border-radius: 50%;
                                }
                            }
                            .user-id{
                                line-height: 180px;
                                display: flex;
                                flex-direction: row;
                            }
                        }
                        .user{
                            display: flex;
                            flex-direction: row;
                            margin: 40px 150px;
                            .text{
                                font-weight: bold;
                            }
                        }
                        .preserve{
                            margin: 60px 300px;
                        }
                    }
                }
            }
        }
    }
</style>